BindGrid = {};

BindGrid.create = function () {

	this.bindDataGrid = $("#bindDataGrid");
	var url = path + "/message/dataBindList";
	this.bindDataGrid.datagrid({
		columns: [[
			{field: 'equipName', title: '显示名称', width: 120, sortable: false},
			{field: 'simNo', title: '设备号', width: 120, sortable: false},
			{field: 'communicationModel', title: '通信模式', width: 60, sortable: false},
			{field: 'depName', title: '所属组', width: 120, sortable: false},
			{field: 'parentSim', title: '指挥卡号', width: 120, sortable: false},
			//{ title: 'id', field: 'id', width: 60,minWidth:60 }
		]],
		//height: 165,
		url: url,
		method: 'POST',
		fit: true,
		toolbar: "#bindGridToolbar",
		//queryParams: {'queryId': 'selectProcessedAlarms'},
		idField: 'id',
		striped: true,
		loadMsg: '',
		fitColumns: true,
		singleSelect: true,
		rownumbers: true,
		pagination: true,
		nowrap: true,
		pageSize: 20,
		onDblClickRow: this.onDblClickRow,
		pageList: [20, 50, 100, 200],
		showFooter: true
	});
	var me = this;
	$("#btnQueryData").click(function () {
		var simNo = $("#simNo").val();
		var parentSims = $('#parentSims').val();
		me.params = {simNo: simNo, parentSims: parentSims};

		me.bindDataGrid.datagrid('load', me.params);
	});



	return bindDataGrid;
}